﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RFBR.Core.Infrastructure.Models.Structure
{
	internal class CustomObject : Entity, ICustomObject
	{
		#region [Constructors]
		public CustomObject(Guid? id, string name = null, object value = null)
			:base(id.HasValue ? id.Value : Guid.NewGuid(), name, EntityType.Custom)
		{
			Value = value;
		}
		#endregion
		public object Value { get; set; }

		public override string ToString()
		{
			return Value.ToString();
		}
	}
}
